package cn.edu.qzuie.artist.module.td.controller.admin.work.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.edu.qzuie.artist.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.edu.qzuie.artist.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 作品分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class WorkPageReqVO extends PageParam {

    @Schema(description = "作品名称", example = "3D作品")
    private String workName;

    @Schema(description = "分类编号", example = "12")
    private Long catagoryId;

    @Schema(description = "作品类型：图片，视频，文件", example = "2")
    private Integer workType;

    @Schema(description = "是否发布")
    private Boolean published;

    @Schema(description = "用户编号", example = "1")
    private Long userId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String nickName;

}